-- GENERATED SPELL FOR [Risen Construct] --


function spell0_10488(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(16169,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10488', 518, 1)
end

function spell1_10488(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_10488', 663, 1)
end

function spell2_10488(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_10488', 629, 1)
end

function Sorts_10488(pUnit, Event)
local choix_sorts_10488 = math.random(0, 2)
if choix_sorts_10488 == 0 then
pUnit:RegisterEvent('spell0_10488', 1, 1)
end
if choix_sorts_10488 == 1 then
pUnit:RegisterEvent('spell1_10488', 1, 1)
end
if choix_sorts_10488 == 2 then
pUnit:RegisterEvent('spell2_10488', 1, 1)
end
end

function mob10488_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10488', math.random(1500, 3000), 1)
end

function mob10488_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10488_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10488_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10488, 1, 'mob10488_Action')
RegisterUnitEvent(10488, 2, 'mob10488_Leave')
RegisterUnitEvent(10488, 3, 'mob10488_Kill')
RegisterUnitEvent(10488, 4, 'mob10488_Die')
